package com.chris.seata_app.config;

import com.alibaba.dubbo.config.ConsumerConfig;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author wujf
 * @date 2022/1/26
 */
@Configuration
public class DubboConfig {


    /**
     * 设置全局dubbo配置
     *
     * @return
     */
    @Bean
    public ConsumerConfig consumerConfig() {
        ConsumerConfig consumerConfig = new ConsumerConfig();
        consumerConfig.setRetries(0);
        return consumerConfig;
    }


}
